package com.guigu.pd.oms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.common.utils.PageUtils;
import com.guigu.common.utils.PageVo;
import com.guigu.common.utils.R;
import com.guigu.pd.serviceapi.pojo.OrderEntity;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 订单
 *
 * @author deyran
 * @email deyran@gmail.com
 * @date 2022-07-19 19:29:39
 */
public interface OrderService extends IService<OrderEntity> {

    PageVo<OrderEntity> queryPage(Map<String, Object> params);

    R kuhuxiadanjijian(Map<String, Object> params);

    /**
     * 计算订单价格
     * @param distance 发收货点距离 km
     * @param totalWeight  物体总重量 kg
     * @return
     */
    String calculateAmount(BigDecimal distance,BigDecimal totalWeight);

    OrderEntity getorderbyId(String id);
}

